<html>
<title>::::{$siteinfo.systeminfo}::::</title>
<head>
<link href="{$siteinfo.tempdir}images/index.css" rel="stylesheet" type="text/css" />
<script src="inc/js/jquery.js" type="text/javascript"></script>
	
<script language="javascript">	
$(function(){
   $("#dd .topmenu").each(function()
	{
    var id=$("#dd .topmenu").index(this);

$(this).click(function(){	 

 if($("#dd .showtable").eq(id).css("display")=='none')
 {
 var ctid=$("#dd .ctid").eq(id).val();	
  $.ajax({
	   type:"GET",
	   url:"do/ajax/aj_admin.php",
	   data:"action=sfchdlist&pid="+ctid,
	   success:
	function(json){
	var json=eval('('+json+')');  
	var str='';
	for(var i=0;i<json.length;i++)
	{
	str+='<tr><td width="44" height="24">&nbsp;</td><td width="11" class="x1">&nbsp;</td><td width="120" class="bs">&nbsp;';
	str+='<a href="'+json[i].link+'" target="forum">'+json[i].name+'</a>';
	str+='</td></tr>';
	}
       $("#dd .showtable").eq(id).html(str);
       $("#dd .showtable").eq(id).show();
//*/
	  
	}
  });
            }else
		   {
		      $("#dd .showtable").eq(id).hide();
		   }
		
		 });
		
	 });

	 
	
	})
	</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>

<body style="background: url({$siteinfo.tempdir}images/left_bg.gif) repeat-y right #3678B0;">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" id="dd">
	<tr>
		<td align="center" valign="top">

		<table width="178" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>


<!-- {foreach name=topmenu item=item from=$menu} -->
		<table width="178" border="0" cellspacing="0" cellpadding="0" class="topmenu">
			<tr>
				<td height="40" align="center" class="bg">
				<table width="164" height="26" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td width="48" height="26" align="right"></td>
						<td width="116" class="bs lk1" style="cursor: pointer;" >{$item.name}
						<!-- 该hidden是用来向ajax传递主id的，考虑优化掉，暂时没有好的方法 -->
						<input type="hidden" class="ctid" value="{$item.id}">
						</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		
<!-- 该table是用来显示ajax获取的下级数据的 -->
<table width="175" height="23" border="0" cellpadding="0" cellspacing="0" class="showtable"  style="display:none">
</table>

<!--{/foreach}-->



	

</table>

</body>
</html>
